1
/****************************** Module Header ******************************\
2 * Module Name: TotalCpuUsageMonitor.cs
4 * Copyright (c) Microsoft Corporation.
6 * This class inherits CpuUsageMonitorBase and it is used to monitor the total
10 * This source is subject to the Microsoft Public License.
11 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
12 * All other rights reserved.
14 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
15 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
16 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
17 \***************************************************************************/
20 using System
.Collections
.Generic
;
23 using System
.Diagnostics
;
27 public class TotalCpuUsageMonitor
: CpuUsageMonitorBase
29 const string categoryName
= "Processor";
30 const string counterName
= "% Processor Time";
31 const string instanceName
= "_Total";
33 public TotalCpuUsageMonitor(int timerPeriod
, int valueArrayCapacity
)
34 : base(timerPeriod
, valueArrayCapacity
, categoryName
, counterName
, instanceName
)